package com.rightsidetech.trade.mapper;

import com.rightsidetech.trade.dtos.response.TdBuyCarResp;
import com.rightsidetech.trade.entity.TdBuyCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TdBuyCarMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TdBuyCar record);

    int insertSelective(TdBuyCar record);

    TdBuyCar selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TdBuyCar record);

    int updateByPrimaryKey(TdBuyCar record);

    TdBuyCar selectByUserInfoAndStoreId(@Param("userInfoId") Long userInfoId,@Param("storeId") Long storeId);

    int updateNoneDetail();

    List<TdBuyCarResp> selectListByUserId(@Param("userInfoId") Long userInfoId,@Param("storeId") Long storeId);

    int updateStoreNameByStoreId(@Param("storeName")String storeName,@Param("storeId") Long storeId);


}